// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import axios from './router/axios'
import VueAxios from 'vue-axios'
import router from './router/router'
import store from './store'
Vue.use(VueAxios, axios)
import './permission'
import './errorLog'
import 'babel-polyfill'

import { loadStyle } from './util/util'
import * as urls from '@/config/env'
import { iconfontUrl, iconfontVersion } from '@/config/env'

import './base/index.css'

// import Avue from 'avue-cli/packages/index.js'
// import 'avue-cli/src/styles/common.scss'

import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)

import 'element-ui/lib/theme-chalk/index.css'
import ElementUI from 'element-ui'
Vue.use(ElementUI)

import BasicContainer from '@/components/basic-container/main'
Vue.component('BasicContainer', BasicContainer)


Vue.config.productionTip = false

iconfontVersion.forEach(ele => {
    loadStyle(iconfontUrl.replace('$key', ele));
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
